package com.rtx.wcs.std.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rtx.edi.model.response.EdiResponse;
import com.rtx.wcs.std.bean.po.EdiTaskDownLog;
import com.rtx.wcs.std.service.EdiTaskDownLogService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = {"WCS日志"})
@RestController
@RequestMapping("/v1/edi")
public class EdiTaskCallBackLogController {
	
	@Autowired
	EdiTaskDownLogService ediTaskDownLogService;

    /**
     * 获取日志列表
     * @param plApiRequestLogDto
     * @return
     */
    @ApiOperation(value = "WCS日志列表", notes = "分页获取日志列表")
    @PostMapping("selectediwcslog")
    public EdiResponse selectPlApiRequestLogList(@RequestBody EdiTaskDownLog dto){
        Page<EdiTaskDownLog> pageParam = new Page<>(dto.getPageNum(), dto.getPageSize());
        ediTaskDownLogService.selectPageList(pageParam,dto);
        return  EdiResponse.success().data("page",pageParam);
    }
}
